<?php

use Doctrine\ORM\Tools\Setup;

require_once "/entities/class_Bibliografia.php";
require_once  "/entities/class_Disciplina.php";
require_once  "/entities/class_RefBibliografica.php";
require_once  "/entities/class_UsuarioAdministrador.php";
require_once  "/entities/class_UsuarioProfessor.php";
require_once  "/entities/class_UsuarioRestrito.php";


require_once "Doctrine/ORM/Tools/Setup.php";

Setup::registerAutoloadPEAR();

$debug = true;
$config = Setup::createAnnotationMetadataConfiguration(array(__DIR__."/entities"), $debug);

// the connection configuration
$conn = array(
    'driver'   => 'pdo_mysql',
    'user'     => 'root',
    'password' => 'admin',
    'dbname'   => 'sgd_icea',
);

$entityManager = \Doctrine\ORM\EntityManager::create($conn, $config);
?>
